<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">

<#include "/common/pagerForm.html">


<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar" >
            <ul class="searchContent" >
                <li ><label  id="operationCode"><@label key="productionOrderNum.C,colon">生产订单编号：</@label></label> <input type="text" class="textInput" name="productionOrderNum" value="${condition.productionOrderNum!''}" /></li>
                <li ><label  id="operationText"><@label key="workCenterCode.C,colon">工作中心编号：</@label></label> 
                    <input id="workCenter.workCenterCode" name="workCenterCode" type="text"  value="${condition.workCenterCode!''}" suggestFields="workCenterCode,workCenterText" postField="workCenterCode"  
                    suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest" lookupGroup="workCenter"/>
                    
                </li>
                <li><label><@label key="orderType.C,colon">订单类型</@label></label>
                    <select  name="orderTypeCode">
                        <option value="" ><@label key='all.C'>所有</@label></option>
                    <#if orderTypeList??&&(orderTypeList?size>0)>
                        <#list orderTypeList as orderType>
                            <option value="${orderType.orderTypeCode!''}" <#if condition.orderTypeCode==orderType.orderTypeCode>selected="selected"</#if>>${orderType.orderTypeCode!''}-${orderType.orderTypeText!''}</option>
                        </#list>
                    </#if>
                    </select> 
                </li>
            </ul>
            
            <ul class="searchContent" >
                <li><label><@label key="cmprocess_code.C,colon">工艺编号</@label></label><input type="text" name="processCode" class="textInput" value="${condition.processCode!''}" /></li>
                <li><label><@label key="cmprocessrev.C,colon">工艺版本</@label></label><input type="text" name="processRev" class="textInput" value="${condition.processRev!''}" /></li>
                <li></li>
                <li class="query">
                    <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="query.B">查询</@label></button>
                            </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="order_operate" labelKey="putIntoProduction.B" defalutName="投产">
            <li><a class="placeOrder" target="selectedTodo"  href="${rc.getContextPath()}/manage/productionOrder/putIntoProduction?navTabId=${navTabId!''}"  rel="ids" postType="string" callback="batchjobAjaxDone" title="<@label key='confirmPlaceOrder.D'>确定投产？</@label>"><span><@label key="putIntoProduction.B">投产</@label></span>
            </a>
            </li>
            </@buttonRight>
        
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="22"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="productionOrderNum"<#if (page.orderField?? && page.orderField == 'productionOrderNum')>class="${page.orderDirection!''}"</#if>><@label key="productionOrderNum.C">订单编号</@label></th>
                <th width="100" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" orderField="materialText"<#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key="materialText.C">物料名称</@label></th>
                <th width="100" orderField="statusECode"<#if (page.orderField?? && page.orderField == 'statusECode')>class="${page.orderDirection!''}"</#if>><@label key="orderStatusECode.C">订单状态</@label></th>
                <th width="100" orderField="workCenterCode"<#if (page.orderField?? && page.orderField == 'workCenterCode')>class="${page.orderDirection!''}"</#if>><@label key="workCenterCode.C">工作中心编号</@label></th>
                <th width="100" orderField="workCenterText"<#if (page.orderField?? && page.orderField == 'workCenterText')>class="${page.orderDirection!''}"</#if>><@label key="workCenterText.C">工作中心名称</@label></th>
                <th width="100" orderField="plannedQuantity"<#if (page.orderField?? && page.orderField == 'plannedQuantity')>class="${page.orderDirection!''}"</#if>><@label key="plannedQuantity.C">计划数量</@label></th>
                <th width="100" orderField="processCode"<#if (page.orderField?? && page.orderField == 'processCode')>class="${page.orderDirection!''}"</#if>><@label key="cmprocess_code.C">工艺编号</@label></th>
                <th width="100" orderField="processRev"<#if (page.orderField?? && page.orderField == 'processRev')>class="${page.orderDirection!''}"</#if>><@label key="cmprocessrev.C">工艺版本</@label></th>
                <th width="100"  ><@label key="orderTypeCode.C">订单类型编号</@label></th>
                <th width="100"  ><@label key="orderTypeText.C">订单类型描述</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as order>
            <tr target="order_code" rel="${order.productionOrderNum!''}">
                
                <td><input name="ids" value="${order.id!''}" type="checkbox"></td>
                <td>${page.startRow + order_index}</td>
                <td>${order.productionOrderNum!''}</td>
                <td>${order.materialCode!''}</td>
                <td>${order.materialText!''}</td>
                <td><#if orderStatusECode??>
                    <#list orderStatusECode as ecode>
                        <#if order.statuseCode == ecode.eCode>${ecode.eCodeText!''}<#break></#if>
                    </#list>
                </#if>
                </td>
                <td>${order.workCenterCode!''}</td>
                <td>${order.workCenterText!''}</td>
                <td>${order.plannedQuantity!''}</td>
                <td>${order.processCode!''}</td>
                <td>${order.processRev!''}</td>
                <td>${order.orderTypeCode!''}</td>
                <td>${order.orderTypeText!''}</td>
        
            </tr>
            </#list> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
    
    
    
</div>
<script>
$(function(){
    $("input[name='workCenter.workCenterCode']", navTab.getCurrentPanel())
            .val($("#workCenterCode", navTab.getCurrentPanel()).val()); 
});

function setWorkCenterCode()
    {    
                $("#workCenterCode", navTab.getCurrentPanel())
                    .val($("input[name='workCenter.workCenterCode']", navTab.getCurrentPanel()).val());
    }


</script>
